package org.mozhu.mboot.admin.maintain.notification.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mozhu.mboot.core.data.entity.BaseEntity;
import org.mozhu.mboot.core.data.entity.LogicDeleteable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * 通知模板 - 实体类
 */
@Entity
@Table(name = "maintain_notification_template")
@Data
@EqualsAndHashCode(callSuper = true)
public class NotificationTemplate extends BaseEntity implements LogicDeleteable {

	private final static long serialVersionUID = -9120396585922553874L;

	/**
	 * 必须唯一 发送时使用
	 */
	private String code;

	/**
	 * 模板名称
	 */
	private String name;

	@Column(length = 5000)
	private String description;

	/**
	 * 所属系统
	 */
	@Enumerated(EnumType.STRING)
	private NotificationModule module;

	/**
	 * 模板标题
	 */
	private String title;

	/**
	 * 模板内容
	 */
	@Column(length = 5000)
	private String content;

	/**
	 * 是否已逻辑删除
	 */
	private Boolean deleted = Boolean.FALSE;

}
